package valeria.model;

public class DepartVO {
//멤버변수
	private String departName;//String departName만쓰면 그냥 필드고
	private String phNo; //private를 써었기에 멤버변수가됨
	private String officeLoc;
	private int profNo;
	private String hireYear;
//생성자
	public DepartVO(String departName,String phNo,
			String officeLoc,int profNo,String hireYear){
		this.departName=departName;
		this.phNo=phNo;
		this.officeLoc=officeLoc;
		this.profNo=profNo;
		this.hireYear=hireYear;//생성자지정
	}
	public void setDepartName(String departName){this.departName=departName;}
	public void setPhNo(String phNo){this.phNo=phNo;}
	public void setOfficeLoc(String officeLoc){this.officeLoc=officeLoc;}
	public void setProfNo(int profNo){this.profNo=profNo;}
	public void setHireYear(String hireYear){this.hireYear=hireYear;}

	public String getDepartName(){return departName;}
	public String getPhNo(){return phNo;}
	public String getOfficeLoc(){return officeLoc;}
	public int  getProfNo(){return profNo;}
	public String getHireYear(){return hireYear;}
//내부에 저장되있는걸 외부로 출력해주기위해. datatype get~
	@Override
		public String toString() {
			String result="";
			result+=departName +"/"+phNo +"/"+ officeLoc+"/"+ profNo+"/"+ hireYear;
			return result;
		}
}
